﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Data.SQLite;
using System.Linq;
using System.Text;
using PetaPoco;

namespace DAL
{
    public static class SqliteDbScoure
    {
        private static Database db = null;
        public static Database DataBase()
        {
            if (db == null)
            {
                var conn = ConfigurationManager.ConnectionStrings["PetaPocoSqliteConn"];
                db = new Database(conn.ConnectionString, SQLiteFactory.Instance);}
            return db;
        }
    }
}
